package com.aiyi.education.entity.group;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
* <p>
*
企业和教师提现表
* </p>
* <p>
* Created by aj1g Generator on 2020/04/29
* </p>
* <p>

//表 ks_enterpriseaccount 字段列表：
* </p>
* <p>
(ID , verify , status , ep_id , user_name , Title , type , Way_Type , way , order_id , money , Real_Money , charge_Money , Applicant , phone , Bank_Account , Account_Number , Remarks , Re_Remarks , begin_date , end_date , add_date , pay_date , inputer , tc_id , User_ID )
* </p>
* <p>

//对象 KsEnterpriseaccount 属性列表：
* </p>
* <p>
(id , verify , status , epId , userName , title , type , wayType , way , orderId , money , realMoney , chargeMoney , applicant , phone , bankAccount , accountNumber , remarks , reRemarks , beginDate , endDate , addDate , payDate , inputer , tcId , userId )
* </p>
* <p>

//表 ks_enterpriseaccount 字段中文解释：
* </p>
* <p>
(ID="ID/INTEGER" , verify="转账状态/TINYINT" , status="审核状态/TINYINT" , ep_id="企业ID/INTEGER" , user_name="提款者/VARCHAR" , Title="标题/VARCHAR" , type="结算类型/VARCHAR" , Way_Type="0,银行转,线下,2转入预存款/TINYINT" , way="结算方式/VARCHAR" , order_id="订单ID/VARCHAR" , money="结算金额/DECIMAL" , Real_Money="实际到账金额/DECIMAL" , charge_Money="付款金额/DECIMAL" , Applicant="开户人/VARCHAR" , phone="电话/VARCHAR" , Bank_Account="开户银行/VARCHAR" , Account_Number="开户账号/VARCHAR" , Remarks="备注/VARCHAR" , Re_Remarks="回复/VARCHAR" , begin_date="开始时间/TIMESTAMP" , end_date="结算时间/TIMESTAMP" , add_date="添加时间/TIMESTAMP" , pay_date="付款时间/TIMESTAMP" , inputer="操作者/VARCHAR" , tc_id="教师ID/INTEGER" , User_ID="用户ID/INTEGER" )
* </p>
* <p>

//对象 KsEnterpriseaccount 属性解释：
* </p>
* <p>
(id="ID/Integer" , verify="转账状态/Byte" , status="审核状态/Byte" , epId="企业ID/Integer" , userName="提款者/String" , title="标题/String" , type="结算类型/String" , wayType="0,银行转,线下,2转入预存款/Byte" , way="结算方式/String" , orderId="订单ID/String" , money="结算金额/Long" , realMoney="实际到账金额/Long" , chargeMoney="付款金额/Long" , applicant="开户人/String" , phone="电话/String" , bankAccount="开户银行/String" , accountNumber="开户账号/String" , remarks="备注/String" , reRemarks="回复/String" , beginDate="开始时间/Date" , endDate="结算时间/Date" , addDate="添加时间/Date" , payDate="付款时间/Date" , inputer="操作者/String" , tcId="教师ID/Integer" , userId="用户ID/Integer" )
* </p>
* <p>

//对象 KsEnterpriseaccount Json格式：
* </p>
* <p>
{"id":"ID/Integer" , "verify":"转账状态/Byte" , "status":"审核状态/Byte" , "epId":"企业ID/Integer" , "userName":"提款者/String" , "title":"标题/String" , "type":"结算类型/String" , "wayType":"0,银行转,线下,2转入预存款/Byte" , "way":"结算方式/String" , "orderId":"订单ID/String" , "money":"结算金额/Long" , "realMoney":"实际到账金额/Long" , "chargeMoney":"付款金额/Long" , "applicant":"开户人/String" , "phone":"电话/String" , "bankAccount":"开户银行/String" , "accountNumber":"开户账号/String" , "remarks":"备注/String" , "reRemarks":"回复/String" , "beginDate":"开始时间/Date" , "endDate":"结算时间/Date" , "addDate":"添加时间/Date" , "payDate":"付款时间/Date" , "inputer":"操作者/String" , "tcId":"教师ID/Integer" , "userId":"用户ID/Integer" }
* </p>


*/


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("ks_enterpriseaccount")
public class KsEnterpriseaccount extends Model<KsEnterpriseaccount> implements Serializable {
    /**
     * ID
     */
     @TableId(value="ID" ,type = IdType.INPUT)
    private Integer id;

    /**
     * 转账状态
     */
     @TableField("verify")
    private Byte verify;

    /**
     * 审核状态
     */
     @TableField("status") 
    private Byte status;

    /**
     * 企业ID
     */
     @TableField("ep_id") 
    private Integer epId;

    /**
     * 提款者
     */
     @TableField("user_name") 
    private String userName;

    /**
     * 标题
     */
     @TableField("Title") 
    private String title;

    /**
     * 结算类型
     */
     @TableField("type") 
    private String type;

    /**
     * 0,银行转,线下,2转入预存款
     */
     @TableField("Way_Type") 
    private Byte wayType;

    /**
     * 结算方式
     */
     @TableField("way") 
    private String way;

    /**
     * 订单ID
     */
     @TableField("order_id") 
    private String orderId;

    /**
     * 结算金额
     */
     @TableField("money") 
    private Long money;

    /**
     * 实际到账金额
     */
     @TableField("Real_Money") 
    private Long realMoney;

    /**
     * 付款金额
     */
     @TableField("charge_Money") 
    private Long chargeMoney;

    /**
     * 开户人
     */
     @TableField("Applicant") 
    private String applicant;

    /**
     * 电话
     */
     @TableField("phone") 
    private String phone;

    /**
     * 开户银行
     */
     @TableField("Bank_Account") 
    private String bankAccount;

    /**
     * 开户账号
     */
     @TableField("Account_Number") 
    private String accountNumber;

    /**
     * 备注
     */
     @TableField("Remarks") 
    private String remarks;

    /**
     * 回复
     */
     @TableField("Re_Remarks") 
    private String reRemarks;

    /**
     * 开始时间
     */
     @TableField("begin_date") 
    private Date beginDate;

    /**
     * 结算时间
     */
     @TableField("end_date") 
    private Date endDate;

    /**
     * 添加时间
     */
     @TableField("add_date") 
    private Date addDate;

    /**
     * 付款时间
     */
     @TableField("pay_date") 
    private Date payDate;

    /**
     * 操作者
     */
     @TableField("inputer") 
    private String inputer;

    /**
     * 教师ID
     */
     @TableField("tc_id") 
    private Integer tcId;

    /**
     * 用户ID
     */
     @TableField("User_ID") 
    private Integer userId;

    private static final long serialVersionUID = 1L;

    @Override
    public Serializable pkVal() {
         return this.id;
    }
}